package com.sx.shop.entity;

import lombok.Data;

@Data
public class StoreProduct {
    private Integer id;
    private Store store;
    private Product product;
    private Integer num;

    public StoreProduct(Store store, Product product, Integer num) {
        this.store = store;
        this.product = product;
        this.num = num;
    }

    public StoreProduct(Integer id, Store store, Product product, Integer num) {
        this.id = id;
        this.store = store;
        this.product = product;
        this.num = num;
    }
}
